from django.contrib.syndication.feeds import Feed

from publicacoes.models import Artigo, Noticias


class UltimosArtigos(Feed):
    title = 'Ultimos artigos do Instituto Galaxy'
    link = '/'

    def items(self):
        return Artigo.objects.all()


class UltimasNoticias(Feed):
    title = 'Ultimos noticias do Instituto Galaxy'
    link = '/'

    def items(self):
        return Noticias.objects.all()

